import createAPI from '@/plugins/axios'
const asyncLogin = {
  login: config => createAPI('elise/login', 'post', config),
  getRoleRight: config => createAPI('role/getRoleRight', 'post', config),
  getUserRight: config => createAPI('role/getUserRight', 'post', config)
}
export default asyncLogin
